package cn.jimmie.learn.sdk;

import android.app.Activity;

import cn.jimmie.learn.pbc.resource.ISdk;
import cn.jimmie.learn.pbc.resource.ShareInstance;
import cn.jimmie.learn.plugin.SdkInstance;

/**
 * function :
 *
 * <p> Create Time:  2019年02月14日 14:23 </p>
 * <p> @author Jimmie.Qian  </p>
 */
public final class SdkCenter {

    public static void login(Activity activity, OnSdkLoginListener listener) {
        instance().login(activity);
        listeners().setSdkLoginListener(listener);
    }

    public static void init(Activity activity) {
        // todo ...
    }

    private static ShareInstance listeners() {
        return ShareInstance.instance();
    }

    private static ISdk instance() {
        return SdkInstance.getInstance();
    }
}
